package com.mali.backendcommon.rpc;

import com.mali.malibackendmodel.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mali.malibackendmodel.vo.UserLoginVO;
import com.mali.malibackendmodel.vo.UserVO;

import java.util.List;

/**
* @author 132993
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-06-17 16:46:20
*/
public interface UserService extends IService<User> {
    UserLoginVO login(String account, String password);

    void sendCode(String account,String email);

    void register(String account, String userName, String password, String email, String securityCode);

    void resetPassword(String account, String securityCode, String newPassword);

    List<UserVO> getListByUserName(String userName);

    UserVO getByUserId(Long id);

    List getByUserIds(List ids);

    void logout(String token);
}
